package com.caissa.springboot.starter.msg.config;

import com.caissa.ecp.base.api.dto.response.JsonResponse;
import com.caissa.retail.msg.export.common.enums.ResendTimeEnum;
import lombok.Builder;
import lombok.Data;


@Data
public class ResendPo {
    /**
     * 重发时间间隔
     */
    private ResendTimeEnum resendTimeEnum = ResendTimeEnum.RESEND_ZERO_MIN;
    /**
     * 失败重发次数
     */
    private int sendTotalNum = 1;

    /**
     * 只发送一次
     */
    public static ResendPo getDefault() {
        ResendPo resendPo = new ResendPo();
        resendPo.setResendTimeEnum(ResendTimeEnum.RESEND_ZERO_MIN);
        resendPo.setSendTotalNum(1);
        return resendPo;
    }

}
